package com.ruoyi.resturant.service;

import com.ruoyi.resturant.domain.Student;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface IStudentService {
    public List<Student> getStudents();
    /**
     * 根据学生ID查询学生详情
     * @param id
     * @return
     */
    public Student selectStudentById(long id);
    /**
     * 新增学生信息
     * @param student
     */
    public int insertStudent(Student student);

    /**
     * 修改学生信息
     * @param student
     * @return
     */
    public int updateStudent(Student student);

    /**
     * 根据学生id删除学生信息
     * @param id
     * @return
     */
    public int deleteStudentById(long id);
}
